package com.roadmap.client.module.life;

import org.apache.log4j.Logger;

import com.roadmap.client.module.BaseManager;
import com.roadmap.common.BaseEntity;
import com.roadmap.common.RdcLogger;
import com.roadmap.entities.Aspirant;
import com.roadmap.entities.LifeMap;
import com.roadmap.exception.ActionNotSupportedException;
import com.roadmap.exception.EntityNotFoundException;
import com.roadmap.exception.InvalidActionException;
import com.roadmap.exception.InvalidValueException;
import com.roadmap.exception.NullObjectException;
import com.roadmap.exception.ServerException;

public class VisionManager extends BaseManager {
	private final static Logger logger = RdcLogger
			.getLogger(VisionManager.class);

	public VisionManager(String aspirantId, Aspirant parent) {
		super(aspirantId, LifeMap.class, parent);
	}
	
	public VisionManager(String aspirantId) {
		super(aspirantId, LifeMap.class);
	}

	/**
	 * This action is not supported by LifeMap
	 */
	@Override
	public void delete(BaseEntity entity) throws NullObjectException,
			InvalidActionException, InvalidValueException, ServerException,
			EntityNotFoundException, ActionNotSupportedException {
		ActionNotSupportedException ane = new ActionNotSupportedException();
		logger.error("The mamanger doesn't support this action.");
		throw ane;
	}

}
